atmel_nand: use nand ecc_{strength, step}_ds instead of our own function
authorJosh Wu <[email protected]>
Mon, 25 Jan 2016 06:06:33 +0000 (14:06 +0800)
committerAndreas Bießmann <[email protected]>
Wed, 27 Jan 2016 12:58:58 +0000 (13:58 +0100)
commit3a2056719968c82fb0b5e079b47a146f68330879
tree552b3c1117c12a3f3868f5d1ffce26c9b50fac4d
parent75b03cf14ccbe2371cd11e410238fff0a02e72b5
atmel_nand: use nand ecc_{strength, step}_ds instead of our own function

Since ecc_{strength,step}_ds is introduced in nand_chip structure for
minimum ecc requirements. So we can use them directly and remove our
own get_onfi_ecc_param function.

Signed-off-by: Josh Wu <[email protected]>
Reviewed-by: Andreas Bießmann <[email protected]>
Signed-off-by: Wenyou Yang <[email protected]>
drivers/mtd/nand/atmel_nand.c